package cn.getech.data.development.controller.api;

import cn.getech.data.development.api.JobNodeConfigApi;
import cn.getech.data.development.dto.JobCronDto;
import cn.getech.data.development.service.JobNodeConfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JobNodeConfigApiController implements JobNodeConfigApi {
    @Autowired
    private JobNodeConfService jobNodeConfService;

    @Override
    public void insertJobNodeConfig(JobCronDto jobCronDto) {
        try {
            jobNodeConfService.insertJobNodeConfig(jobCronDto);
        }catch (Exception e){
           e.printStackTrace();
        }
    }
}
